package display.led;

public class Display {
    private int value = 0;
    private int limit = 0;
    private static int step = 1;
    public Display(int limit) {
        this.limit = limit;
    }
    public int getValue() {
        return value;
    }
    public int getLimit() {
        return limit;
    }
    public void increase() {
        value++;
        if (value == limit) {
            value = 0;
        }
    }

    public static void f() {
        System.out.println("Hello\n");
    }

    public static void main(String[] args) {
        Display d1 = new Display(10);
        Display d2 = new Display(20);
        System.out.println("step = " + d1.step);
        System.out.println("step = " + d2.step);
        d1.step = 2;
        System.out.println("step = " + d1.step);
        System.out.println("step = " + d2.step);

    }
}
